$(function(){
	$('#allinone_carousel_charming').allinone_carousel({
			skin: 'charming',
			width: 760,
			height: 347,
			responsive:true,
			autoPlay: 8,
			resizeImages:true,
			autoHideBottomNav:false,
			showElementTitle:false,
			verticalAdjustment:50,
			showPreviewThumbs:false,
			//easing:'easeOutBounce',
			numberOfVisibleItems:5,
			nextPrevMarginTop:0,
			playMovieMarginTop:0,
			bottomNavMarginBottom:0
		});
});


var dif_carrucel=0;
function changePagGallery(obj){
	// dif_carrucel++;
	// if (dif_carrucel > 2) {
	// 	console.log(dif_carrucel);
	// 	dif_carrucel = 0;
	// };
	// console.log(obj.attr("rel")+" <==> "+$(".bottomNavButtonOFF.p1.bottomNavButtonON").attr("rel"));

	$(".fav-headers .fav-header").css("display", "none");
	$("#fav-header"+obj.attr("rel")).css('display', 'block');

	$(".fav-descrips .fav-descri").css("display", "none");
	$("#fav-descri"+obj.attr("rel")).css('display', 'block');	
}